/*
 * Stats.cpp
 *
 *  Created on: Sep 9, 2013
 *      Author: jason
 */

#include "../include/Stats.hpp"

Stats::Stats() : flying(false),
				alive(true),
				mp(0),
				maxMP(0),
				magic(1),
				defense(1),
				hp(6),
				maxHP(6),
				agility(1),
				attack(1),
				move(4) {}

Stats::~Stats() {}

void Stats::heal(int x) {
	hp += x;
	if (hp > maxHP) {
		hp = maxHP;
	}
}

void Stats::takeDamage(int x) {
	hp -= x;
	if (x < 0) {
		alive = false;
	}
}
